package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商档案对象 supplier
 * 
 * @author sauger
 * @date 2022-03-14
 */
public class Supplier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String code;

    /** 公司名称 */
    private String title;

    /** 公司简称 */
    @Excel(name = "公司简称")
    private String shortTitle;

    /** 公司评级 */
    @Excel(name = "公司评级")
    private String level;

    /** 公司优势 */
    @Excel(name = "公司优势")
    private String advantage;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date foundDate;

    /** 注册资本(万) */
    @Excel(name = "注册资本(万)")
    private BigDecimal capital;

    /** 员工人数 */
    @Excel(name = "员工人数")
    private Integer employeeSize;

    /** 年营业额 */
    @Excel(name = "年营业额")
    private String revenue;

    /** 企业性质 */
    @Excel(name = "企业性质")
    private String comanpyType;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setShortTitle(String shortTitle) 
    {
        this.shortTitle = shortTitle;
    }

    public String getShortTitle() 
    {
        return shortTitle;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setAdvantage(String advantage) 
    {
        this.advantage = advantage;
    }

    public String getAdvantage() 
    {
        return advantage;
    }
    public void setFoundDate(Date foundDate) 
    {
        this.foundDate = foundDate;
    }

    public Date getFoundDate() 
    {
        return foundDate;
    }
    public void setCapital(BigDecimal capital) 
    {
        this.capital = capital;
    }

    public BigDecimal getCapital() 
    {
        return capital;
    }
    public void setEmployeeSize(Integer employeeSize) 
    {
        this.employeeSize = employeeSize;
    }

    public Integer getEmployeeSize() 
    {
        return employeeSize;
    }
    public void setRevenue(String revenue) 
    {
        this.revenue = revenue;
    }

    public String getRevenue() 
    {
        return revenue;
    }
    public void setComanpyType(String comanpyType) 
    {
        this.comanpyType = comanpyType;
    }

    public String getComanpyType() 
    {
        return comanpyType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("title", getTitle())
            .append("shortTitle", getShortTitle())
            .append("level", getLevel())
            .append("advantage", getAdvantage())
            .append("foundDate", getFoundDate())
            .append("capital", getCapital())
            .append("employeeSize", getEmployeeSize())
            .append("revenue", getRevenue())
            .append("comanpyType", getComanpyType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
